// <Buffer 76 5c 01 00 00 01 00 00 00 00 00 00 06 76 6f 72 74 65 78 04 64 61 74 61 09 6d 69 63 72 6f 73 6f 66 74 03 63 6f 6d 00 00 01 00 01>
// <Buffer 85 df 01 00 00 01 00 00 00 00 00 00 05 62 61 69 64 75 03 63 6f 6d 00 00 01 00 01>
// <Buffer 20 36 01 00 00 01 00 00 00 00 00 00 02 6a 64 03 63 6f 6d 00 00 01 00 01>
// <Buffer 0f a7 01 00 00 01 00 00 00 00 00 00 06 76 6f 72 74 65 78 04 64 61 74 61 09 6d 69 63 72 6f 73 6f 66 74 03 63 6f 6d 00 00 01 00 01>
// <Buffer e8 c3 01 00 00 01 00 00 00 00 00 00 06 76 6f 72 74 65 78 04 64 61 74 61 09 6d 69 63 72 6f 73 6f 66 74 03 63 6f 6d 00 00 01 00 01>
// <Buffer b0 1f 01 00 00 01 00 00 00 00 00 00 03 73 73 6c 07 67 73 74 61 74 69 63 03 63 6f 6d 00 00 01 00 01>
// <Buffer e7 2b 01 00 00 01 00 00 00 00 00 00 05 7a 6a 63 6d 65 03 74 6f 70 00 00 01 00 01>
// <Buffer 2f 4f 01 00 00 01 00 00 00 00 00 00 05 7a 6a 63 6d 65 03 74 6f 70 00 00 01 00 01>
// <Buffer b8 a4 01 00 00 01 00 00 00 00 00 00 05 7a 6a 63 6d 65 03 74 6f 70 00 00 01 00 01>
// <Buffer ae 24 01 00 00 01 00 00 00 00 00 00 05 7a 6a 63 6d 65 03 74 6f 70 00 00 01 00 01>
// <Buffer 31 54 01 00 00 01 00 00 00 00 00 00 05 67 69 74 65 65 03 63 6f 6d 00 00 01 00 01>
// <Buffer c3 75 01 00 00 01 00 00 00 00 00 00 05 73 6c 61 70 69 04 6f 72 61 79 03 6e 65 74 00 00 01 00 01>
// <Buffer d1 55 01 00 00 01 00 00 00 00 00 00 05 7a 6a 63 6d 65 03 74 6f 70 00 00 01 00 01>
// <Buffer d2 ac 01 00 00 01 00 00 00 00 00 00 02 64 73 03 73 73 77 04 6c 69 76 65 03 63 6f 6d 00 00 01 00 01>
// <Buffer 7f d1 01 00 00 01 00 00 00 00 00 00 05 62 61 69 64 75 03 63 6f 6d 00 00 01 00 01>
var array1 = [
  '0x78', '0xe4', '0x1',  '0x0',
  '0x0',  '0x1',  '0x0',  '0x0',
  '0x0',  '0x0',  '0x0',  '0x0',
  '0x2',  '0x6a', '0x64', '0x3',
  '0x63', '0x6f', '0x6d', '0x0',
  '0x0',  '0x1',  '0x0',  '0x1'
];
var array2 = [
  '0xb3', '0x5e', '0x1',  '0x0',
  '0x0',  '0x1',  '0x0',  '0x0',
  '0x0',  '0x0',  '0x0',  '0x0',
  '0x3',  '0x67', '0x65', '0x74',
  '0x5',  '0x73', '0x6f', '0x67',
  '0x6f', '0x75', '0x3',  '0x63',
  '0x6f', '0x6d', '0x0',  '0x0',
  '0x1',  '0x0',  '0x1'
];
var array3 = [
  '0x8',  '0x20', '0x1',  '0x0',  '0x0',
  '0x1',  '0x0',  '0x0',  '0x0',  '0x0',
  '0x0',  '0x0',  '0x6',  '0x76', '0x6f',
  '0x72', '0x74', '0x65', '0x78', '0x4',
  '0x64', '0x61', '0x74', '0x61', '0x9',
  '0x6d', '0x69', '0x63', '0x72', '0x6f',
  '0x73', '0x6f', '0x66', '0x74', '0x3',
  '0x63', '0x6f', '0x6d', '0x0',  '0x0',
  '0x1',  '0x0',  '0x1'
];
var array4 = [
  '0xab', '0xb2', '0x1',  '0x0',
  '0x0',  '0x1',  '0x0',  '0x0',
  '0x0',  '0x0',  '0x0',  '0x0',
  '0x5',  '0x67', '0x69', '0x74',
  '0x65', '0x65', '0x3',  '0x63',
  '0x6f', '0x6d', '0x0',  '0x0',
  '0x1',  '0x0',  '0x1'
]
var array5 = [
  '0xb2', '0x92', '0x1',  '0x0',  '0x0',
  '0x1',  '0x0',  '0x0',  '0x0',  '0x0',
  '0x0',  '0x0',  '0x6',  '0x76', '0x6f',
  '0x72', '0x74', '0x65', '0x78', '0x4',
  '0x64', '0x61', '0x74', '0x61', '0x9',
  '0x6d', '0x69', '0x63', '0x72', '0x6f',
  '0x73', '0x6f', '0x66', '0x74', '0x3',
  '0x63', '0x6f', '0x6d', '0x0',  '0x0',
  '0x1',  '0x0',  '0x1'
];
var array6 = [
  '0x77', '0xaa', '0x1',  '0x0',
  '0x0',  '0x1',  '0x0',  '0x0',
  '0x0',  '0x0',  '0x0',  '0x0',
  '0x5',  '0x76', '0x63', '0x6f',
  '0x6e', '0x66', '0x1',  '0x66',
  '0x3',  '0x33', '0x36', '0x30',
  '0x2',  '0x63', '0x6e', '0x0',
  '0x0',  '0x1',  '0x0',  '0x1'
]
var array7 = [
  '0xdd', '0xc7', '0x1',  '0x0',  '0x0',
  '0x1',  '0x0',  '0x0',  '0x0',  '0x0',
  '0x0',  '0x0',  '0x8',  '0x61', '0x7a',
  '0x37', '0x36', '0x34', '0x32', '0x39',
  '0x35', '0x2',  '0x76', '0x6f', '0x6',
  '0x6d', '0x73', '0x65', '0x63', '0x6e',
  '0x64', '0x3',  '0x6e', '0x65', '0x74',
  '0x0',  '0x0',  '0x1',  '0x0',  '0x1'
]
var array8 = [
  '0x46', '0xc8', '0x1',  '0x0',  '0x0',
  '0x1',  '0x0',  '0x0',  '0x0',  '0x0',
  '0x0',  '0x0',  '0x3',  '0x63', '0x72',
  '0x6c', '0x9',  '0x75', '0x73', '0x65',
  '0x72', '0x74', '0x72', '0x75', '0x73',
  '0x74', '0x3',  '0x63', '0x6f', '0x6d',
  '0x0',  '0x0',  '0x1',  '0x0',  '0x1'
];
let msg1 = Buffer.from(array4) 
const dgram = require('dgram');
const client = dgram.createSocket('udp4');
client.on('error', (err) => {
  console.log(`client error:` + err.stack)
  client.close();
})
client.on('message', (fMsg) => {
  console.log("load_balancer 收到反馈并发送给客户端");
  console.log(fMsg);
  client.close();
})
client.send(msg1, 53, '121.36.17.176', (err) => {
  if (err) {
      console.log(err);
      client.close();
  }
});

